<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="/css/layui.css">
    <link rel="stylesheet" href="/css/dp01.css">
    <script src="/js/jquery-3.7.1.min.js"></script>
    <script src="/js/layui.js"></script>
    <script src="/padgejs/dp01.js"></script>
</head>

<body>
<div class="container">
    <div class="layui-row">
        <div class="layui-col-xs12">
            <div class="layui-form-item">
                <div class="layui-input-group">
                        <div class="layui-btn-container">
                            <button class="layui-btn demo-dropdown-base">
                                <span>姓名</span>
                                <i class="layui-icon layui-icon-down layui-font-12"></i>
                            </button>
                        </div>
                    <input type="text" id="teacherName" placeholder="请输入教师姓名" class="layui-input">
                    <div class="layui-input-suffix">
                        <button id="searchBtn" class="layui-btn layui-btn-primary">查询</button>
                        <button class="layui-btn layui-btn-radius layui-btn-normal" id="backbtn">返回</button>
                        <button class="layui-btn layui-btn-sm" id="add"  onclick="showTeacherDlg();return false;">
                            <i class="layui-icon" >&#xe654;</i>
                        </button>
                    </div>
                </div>
                <button class="layui-btn layui-btn-radius layui-btn-normal" id="editBtn">编辑</button>
            </div>

            <table class="layui-table" lay-even>
                <thead id="head">
                <th>id</th>
                <th>工号</th>
                <th>姓名</th>
                <th>性别</th>
                <th>年龄</th>
                <th>操作</th>
                </thead>
                <tbody id="teacherTb">
                </tbody>
            </table>
            <div class="layui-box layui-laypage" id="pagination">
            </div>
        </div>
    </div>
</div>

<!-- 隐藏的添加教师表单 -->
<form class="layui-form" id="addTeacherForm" style="display: none">
    <div class="demo-reg-container">
        <div class="layui-form-item">
            <div class="layui-row">
                <div class="layui-col-xs12">
                    <div class="layui-input-wrap">
                        <div class="layui-input-prefix">
                            <i class="layui-icon layui-icon-cellphone"></i>
                        </div>
                        <input type="text" name="id" value=""  placeholder="id" lay-reqtext="请填id" autocomplete="off" class="layui-input" id="id">
                    </div>
                </div>

            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-vercode"></i>
                </div>
                <input type="text" name="number" value="" lay-verify="required" placeholder="工号" lay-reqtext="请填写工号" autocomplete="off" class="layui-input" id="number">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-username"></i>
                </div>
                <input type="text" name="name" value="" lay-verify="required" placeholder="姓名" autocomplete="off" class="layui-input" id="name" >
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-block">
                    <input type="radio" name="sex" value="1" title="男" checked>
                    <input type="radio" name="sex" value="2" title="女">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-username"></i>
                </div>
                <input type="text" name="age" value="" placeholder="年龄" autocomplete="off" class="layui-input" lay-affix="clear">
            </div>
        </div>
        <div class="layui-form-item">
            <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="teacher-dlg" id="subBtn">确定</button>
        </div>
    </div>
</form>
</div>
</body>
</html>